*&---------------------------------------------------------------------*
*& 包含               ZFIU020_TOP
*&---------------------------------------------------------------------*
TABLES: ZFIT079_HEAD, ZFIT079_ITEM.

TYPES:
  BEGIN OF TY_RESULT,
    JSDDH       TYPE ZFIT079_HEAD-JSDDH,
    JSDHH       TYPE ZFIT079_ITEM-JSDHH,
    ZYSFPHM     TYPE ZFIT079_ITEM-ZYSFPHM,
    ZYWLX       TYPE ZFIT079_HEAD-ZYWLX,
    ZYWLX_TXT   TYPE TEXT20,
    JSDLX       TYPE ZFIT079_HEAD-JSDLX,
    JSDLX_TXT   TYPE TEXT20,
    JSDZT       TYPE ZFIT079_HEAD-JSDZT,
    JSDZT_TXT   TYPE TEXT20,
    VORGANG     TYPE ZFIT079_HEAD-VORGANG,
    VORGANG_TXT TYPE TEXT20,
    DOCID       TYPE ZFIT079_HEAD-DOCID,
    BELNR       TYPE ZFIT079_HEAD-BELNR,
    GJAHR       TYPE ZFIT079_HEAD-GJAHR,
    BUKRS       TYPE ZFIT079_HEAD-BUKRS,
    LIFNR       TYPE LFA1-LIFNR,
    LIFNR_NAME  TYPE LFA1-NAME1,
    ZFPHM       TYPE ZFIT079_HEAD-ZFPHM,
    ZHSJE       TYPE ZFIT079_HEAD-ZHSJE,
    ZHJSE       TYPE ZFIT079_HEAD-ZHJSE,
    ZHJSE_GX    TYPE ZFIT079_HEAD-ZHJSE_GX,
    ZBHSJE      TYPE ZFIT079_HEAD-ZBHSJE,
    ZBHSJE_GX   TYPE ZFIT079_HEAD-ZBHSJE_GX,
    WAERS       TYPE ZFIT079_HEAD-WAERS,
    SGTXT       TYPE ZFIT079_HEAD-SGTXT,

    EBELN       TYPE ZFIT079_ITEM-EBELN,
    EBELP       TYPE ZFIT079_ITEM-EBELP,
    BSART       TYPE ZFIT079_ITEM-BSART,
    BSART_TXT   TYPE T161T-BATXT,
    WERKS       TYPE ZFIT079_ITEM-WERKS,
    " LGORT      TYPE ZFIT079_ITEM-LGORT,
    CHARG       TYPE ZFIT079_ITEM-CHARG,
    MATNR       TYPE ZFIT079_ITEM-MATNR,
    TXZ01       TYPE ZFIT079_ITEM-TXZ01,
    ERFMG       TYPE ZFIT079_ITEM-ERFMG,
    ERFME       TYPE ZFIT079_ITEM-ERFME,
    WRBTR       TYPE ZFIT079_ITEM-WRBTR,
    BEZNK       TYPE ZFIT079_ITEM-BEZNK,
    MWSKZ       TYPE ZFIT079_ITEM-MWSKZ,
    ZFPSL       TYPE ZFIT079_ITEM-ZFPSL,
    ZFPSE       TYPE ZFIT079_ITEM-ZFPSE,
    MBLNR       TYPE ZFIT079_ITEM-MBLNR,
    MJAHR       TYPE ZFIT079_ITEM-MJAHR,
    ZEILE       TYPE ZFIT079_ITEM-ZEILE,
    SHEET_NO    TYPE ZFIT079_ITEM-SHEET_NO,
    COND_TYPE   TYPE ZFIT079_ITEM-COND_TYPE,
    GL_HKONT    TYPE ZFIT079_ITEM-GL_HKONT,
    GL_KOSTL    TYPE ZFIT079_ITEM-GL_KOSTL,
    GL_ZUONR    TYPE ZFIT079_ITEM-GL_ZUONR,
    GL_SGTXT    TYPE ZFIT079_ITEM-GL_SGTXT,
    GL_SHKZG    TYPE ZFIT079_ITEM-GL_SHKZG,
    GL_WRBTR    TYPE ZFIT079_ITEM-GL_WRBTR,
    GL_MWSKZ    TYPE ZFIT079_ITEM-GL_MWSKZ,
    GL_ZFPSL    TYPE ZFIT079_ITEM-GL_ZFPSL,
    GL_ZFPSE    TYPE ZFIT079_ITEM-GL_ZFPSE,

    CRNAM       TYPE ZFIT079_HEAD-CRNAM,
    CRDAT       TYPE ZFIT079_HEAD-CRDAT,
    CRTIM       TYPE ZFIT079_HEAD-CRTIM,
    CHNAM       TYPE ZFIT079_HEAD-CHNAM,
    CHDAT       TYPE ZFIT079_HEAD-CHDAT,
    CHTIM       TYPE ZFIT079_HEAD-CHTIM,

    DATE_SORT   TYPE SY-DATUM,
    TIME_SORT   TYPE SY-UZEIT,
  END OF TY_RESULT.

DATA:
  GR_TABLE  TYPE REF TO CL_SALV_TABLE,
  GT_RESULT TYPE TABLE OF TY_RESULT WITH HEADER LINE.

SELECTION-SCREEN BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-B01.
  SELECT-OPTIONS:
    S_JSDDH FOR ZFIT079_HEAD-JSDDH,
    S_DOCID FOR ZFIT079_HEAD-DOCID,
    S_ZYWLX FOR ZFIT079_HEAD-ZYWLX,
    S_JSDLX FOR ZFIT079_HEAD-JSDLX,
    S_JSDZT FOR ZFIT079_HEAD-JSDZT,
    S_BUKRS FOR ZFIT079_HEAD-BUKRS NO INTERVALS NO-EXTENSION DEFAULT 'CN10',
    S_LIFNR FOR ZFIT079_HEAD-LIFNR,
    S_ZFPHM FOR ZFIT079_HEAD-ZFPHM,
    S_YSFPH FOR ZFIT079_ITEM-ZYSFPHM,
    S_SGTXT FOR ZFIT079_HEAD-SGTXT,
    S_CRNAM FOR ZFIT079_HEAD-CRNAM MATCHCODE OBJECT USER_COMP DEFAULT SY-UNAME,
    S_CRDAT FOR ZFIT079_HEAD-CRDAT.
SELECTION-SCREEN END OF BLOCK BLK1.

SELECTION-SCREEN BEGIN OF BLOCK BLK2 WITH FRAME TITLE TEXT-B02.
  SELECT-OPTIONS:
    S_EBELN FOR ZFIT079_ITEM-EBELN,
    S_BSART FOR ZFIT079_ITEM-BSART,
    S_WERKS FOR ZFIT079_ITEM-WERKS,
    S_CHARG FOR ZFIT079_ITEM-CHARG,
    S_MATNR FOR ZFIT079_ITEM-MATNR,
    S_MBLNR FOR ZFIT079_ITEM-MBLNR,
    S_MJAHR FOR ZFIT079_ITEM-MJAHR,
    S_SHENO FOR ZFIT079_ITEM-SHEET_NO,
    S_CNDTY FOR ZFIT079_ITEM-COND_TYPE.
SELECTION-SCREEN END OF BLOCK BLK2.

SELECTION-SCREEN BEGIN OF BLOCK BLK3 WITH FRAME TITLE TEXT-B03.
  SELECT-OPTIONS:
    S_HKONT FOR ZFIT079_ITEM-GL_HKONT,
    S_KOSTL FOR ZFIT079_ITEM-GL_KOSTL.
SELECTION-SCREEN END OF BLOCK BLK3.
